import request from '@/utils/request'
/**
 *获取楼宇表单
 * @param {*} params
 * @returns
 */
export function createApi(params) {
  return request({
    url: '/park/building',
    params
  })
}
/**
 *楼宇添加
 * @param {*} data
 * @returns
 */
export function creatAddApi(data) {
  return request({
    url: '/park/building',
    method: 'POST',
    data
  })
}
/**
 *楼宇删除
 * @param {*} id
 * @returns
 */
export function deleteAPI(id) {
  return request({
    url: `/park/building/${id}`,
    method: 'DELETE'
  })
}
/**
 *编辑楼宇
 * @param {*} data
 * @returns
 */
export function changeAPI(data) {
  return request({
    url: '/park/building',
    method: 'put',
    data
  })
}
